from leetcode.p002_AddTwoNumbers import *

def funcTest(height):
    s = 0
    for i in range(len(height) - 1):
        for j in range(i + 1, len(height)):
            t = (j - i) * min(height[i], height[j])
            if (s < t):
                s = t
    return s




if __name__ == '__main__':
    import time



    start = time.clock()

    # 当中是你的程序

    funcTest(height)

    elapsed = (time.clock() - start)
    print("Time used:", elapsed)

